package com.yc.study.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yc.study.entity.Job;
import com.yc.study.vo.JobVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * Mapper 接口
 *
 * @author 王妍
 * @since 2022-02-20
 */
@Mapper
public interface JobMapper extends BaseMapper<Job> {
  Page<JobVo> loadPageVoByCourseId(Page<JobVo> jobVoPage, Long courseId);

  /**
   * 同座老师信息分页查询作业列表
   *
   * @param page 分页信息
   * @param jobVo 作业条件
   * @return 分页列表
   */
  Page<JobVo> loadPageVoByTeacherId(Page<JobVo> page, JobVo jobVo);

  /** 通过学生信息查看作业列表 */
  Page<JobVo> selectPageVoByStudentId(Page<JobVo> jobVoPage, Long id);
}
